import {defineStore} from 'pinia'

import {createPersistedState} from 'pinia-plugin-persistedstate'

export const Stoer_Game_lits = defineStore('Stoer_Game_Lits', {
    state: (): {
        stoer_game_list: [],
    } => {
        return {
            stoer_game_list: []
        }
    },
    actions: {
        async Get_game_list(data: any) {
            this.stoer_game_list = data
        }
    },
    persist: {
        // 启用持久化
        enabled: true,
        // 指定存储方式为 localStorage
        storage: localStorage,

    }


})